package com.example.xcsubsystem.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 2024/10/1
 * 拦截器，检查http header里的内容
 * @author fengyu
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new com.example.xcsubsystem.config.AuthInfoInterceptor())
                .addPathPatterns("/remote/*").excludePathPatterns("/remote/login");
    }
}
